package org.example.Mapper;

import org.apache.ibatis.annotations.Param;
import org.example.PoJo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    //查询所有用户
    public List<User> getUserList();
    //插入用户
    public int addUser(User user);
    //通过Map增加用户
    public void addUser(Map<String,Object> map);
    //删除用户
//    public void deleteUser(int id);
    //修改用户
    public void updateUser(User user);

    //查询用户
    public User GetUser(@Param("username") String name, @Param("password") String password);
    //模糊查询
//    public List<User> getStudentLike(String str);
}
